/* eslint-disable prettier/prettier */
/*
包含 n个接口请求函数的模块
*/
import ajax from "./ajax";

// 分公司接口
//export * from "./subCompanyApi";

const BASE_URL = "http://192.168.1.14:5000";

/**
 * 行人入侵个数
 * @param {*} pramas
 */
export const reqServiceStatistic = pramas => ajax(BASE_URL + "/traffic/statistic/query", pramas);

/**
 * 查询报警事件 (查询公路事件列表)
 * @param {*} pramas
 */
export const reqEvent = pramas => ajax(BASE_URL + "/event/traffic/query", pramas);

/**
 * 查询公路所有视频流
 * @param {*} pramas
 */
export const reqStreamQuery = pramas => ajax(BASE_URL + "/video/traffic/get", pramas);

/**
 * 查询公路数据统计
 * @param {*} pramas
 */
export const reqTrafficStat = pramas => ajax(BASE_URL + "/traffic/statistic/query", pramas);

/**
 * 查询公路监控视频的状态
 * @param {*} pramas
 */
export const reqVideoState = pramas => ajax(BASE_URL + "/video/state/get", pramas);
